/**
 * 亿牛集团
 * 本源代码由亿牛集团及其作者共同所有，未经版权持有者的事先书面授权，
 * 不得使用、复制、修改、合并、发布、分发和/或销售本源代码的副本。
 *
 * @copyright Copyright (c) 2017 yiniu.com all rights reserved.
 */

package com.rico.simplejdbc.jdbc06.sdk.entities;

import java.util.Objects;

/**
 * @author yaoyongfeng
 */
public class SdkGameTypeXml {
    private short id;
    private String name;
    private String code;
    private short num;
    private int addtime;
    private byte status;

    public SdkGameTypeXml() {
    }

    public SdkGameTypeXml(String name, String code, short num, int addtime, byte status) {
        this.name = name;
        this.code = code;
        this.num = num;
        this.addtime = addtime;
        this.status = status;
    }

    public short getId() {
        return id;
    }

    public void setId(short id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    public short getNum() {
        return num;
    }

    public void setNum(short num) {
        this.num = num;
    }


    public int getAddtime() {
        return addtime;
    }

    public void setAddtime(int addtime) {
        this.addtime = addtime;
    }


    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SdkGameTypeXml that = (SdkGameTypeXml) o;
        return id == that.id &&
                num == that.num &&
                addtime == that.addtime &&
                status == that.status &&
                Objects.equals(name, that.name) &&
                Objects.equals(code, that.code);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, name, code, num, addtime, status);
    }
}
